<?php

namespace app\admin\validate;

use think\Validate;

class GoodCategoryValidate extends Validate
{


    const SCENE_SAVE = 'save';

    protected $rule = [
        'id' => 'require',
        'weight' => 'require',
        'images' => 'require',
        'pid' => 'require',
    ];


    protected $message = [
        'weight' => 'weight不可为空',
        'images' => 'images不可为空',
        'pid' => 'pid不可为空',
    ];


    protected $scene = [
        'save' => ["weight", "images", "pid"],
    ];

}